package com.sadhoc.sensory;

import android.app.Activity;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;

public class WifiStrength extends Activity{
	
	
public int getWifiStrength(){
	WifiManager wifiManager =  (WifiManager) getSystemService(Context.WIFI_SERVICE);
	WifiInfo wifiInfo = wifiManager.getConnectionInfo();
	int rssi = wifiInfo.getRssi();
	return rssi;
}
	
}
